import React, {Component} from "react";
import Checkerboard from "./Checkerboard";
import "./game-panel.css"

export default class GamePanel extends Component{
    playChess(row, col) {
        this.props.playChess(row,col)
    }

    render() {
        return (
            <div className="game-panel">
                <Checkerboard checkerboardData={this.props.checkerboardData} playChess={this.playChess.bind(this)} />
            </div>
        );
    }
}